import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class test {
    public static void main(String[] args) {
        ApplicationContext ac = new FileSystemXmlApplicationContext("web/WEB-INF/spring-config.xml");
        testService ts = (testService) ac.getBean("testService");
        ts.hello();
    }
}
